﻿@model Project.WebUI.Models.UserRegisteModel
@using Project.Resource.User         
@{
    ViewBag.Title = "Gamebetplus-Register";
}
<script type="text/javascript">
    $(document).ready(function () {
        if (culture == 'vi-VN') {
            $("#txtbirthday").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'dd-mm-yy',
                yearRange: '1930:2050'
            });
        }
        else {
            $("#txtbirthday").datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat: 'mm/dd/yy',
                yearRange: '1930:2050'
            });
        }
    });
</script>
<section class="container clearfix">
    <div class="left_content">
        <div id="deposit_ajax">

        </div>
        <div id="withdraw_ajax">

        </div>
        <script type="text/javascript">
            $(document).ready(function () {
                LoadDepositAjax(root, "ListDeposit", 1);
                LoadWithDrawAjax(root, "ListWithdraw", 1);
            });
        </script>        
        <div class="clearAll"></div>            
    </div>
    <div class="info">
        @using (Html.BeginForm("Register", "User", FormMethod.Post, new { id = "formRegister" }))                    
        {
            @Html.AntiForgeryToken()
            <table cellpadding="0" cellspacing="0" border="0" style="color: #444242;">            
                <tr>
                    <td colspan="2" style="padding-left: 60px; color: #6db1f2; font-size: 14px; font-weight: bold;">
                        @RegisterResource.RegisterTitle <font style="font-size: 12px; font-style: italic; font-weight: normal;">@RegisterResource.Requiredfields</font>
                    </td>                
                </tr>
                <tr>
                    <td colspan="2" height="15"></td>
                </tr>
                <tr>
                    <td class="content_td" >
                        @RegisterResource.lblUserName&nbsp;<font color="#2b8eef">*</font>
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.UserName, new {id = "txtEmail",@class="cf_input" })                    
                    </td>
                    <td>
                        @Html.ValidationMessageFor(m => m.UserName)                                        
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblPassword&nbsp;<font color="#2b8eef">*</font></td>
                    <td>
                        @Html.TextBoxFor(m => m.Password, new {type="password", id = "Password",@class="cf_input"})                                        
                    </td>
                    <td>
                        @Html.ValidationMessageFor(m => m.Password)
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblConfirmPassword&nbsp;<font color="#2b8eef">*</font></td>
                    <td>
                        @Html.TextBoxFor(m => m.RePassword, new { @class = "cf_input",type="password", id = "RePassword" })                    
                    </td>
                    <td>
                        @Html.ValidationMessageFor(m => m.RePassword)
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblLRAccount&nbsp;<font color="#2b8eef">*</font></td>
                    <td>
                        @Html.TextBoxFor(m => m.LrAccount, new { @class = "cf_input", id = "LrAccount" })                                        
                    </td>
                    <td>
                        @Html.ValidationMessageFor(m => m.LrAccount)
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblEmail&nbsp;<font color="#2b8eef">*</font></td>
                    <td>
                        @Html.TextBoxFor(m => m.Email, new { @class = "cf_input", id = "Email" })                                        
                    </td>
                    <td>
                        @Html.ValidationMessageFor(m => m.Email)
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblFirstName</td>
                    <td>
                        @Html.TextBoxFor(m => m.FirstName, new { @class = "cf_input", id = "FirstName" })
                    </td>                                  
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblLastName</td>
                    <td>
                        @Html.TextBoxFor(m => m.LastName, new { @class = "cf_input", id = "LastName" })
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblSex</td>
                    <td style="font-size: 12px; color: #444242; padding-left: 5px;">                    
                        <input type="radio" name="rdoSex" id="cbxNam" checked="checked" />&nbsp;@RegisterResource.lblSexMale&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <input type="radio" name="rdoSex" id="cbxNu" />&nbsp;@RegisterResource.lblSexFemale
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblBirthDay</td>
                    <td>
                    @Html.TextBoxFor(m => m.Birthday, new {@class = "cf_input",id="txtbirthday" })                    
                </tr>                                    
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>
                <tr>
                    <td  class="content_td">@RegisterResource.lblAddress</td>
                    <td>
                        @Html.TextBoxFor(m => m.Address, new {@class = "cf_input",id="txtaddress" })                    
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10"></td>
                </tr>                                   
                <tr>
                    <td  class="content_td">@RegisterResource.lblCountry</td>
                    <td>
                        @Html.DropDownList("CountryId",ViewBag.ListCountries as SelectList, new {style="width: 198px; color: #717171;"})
                    </td>
                </tr>                                    
            </table>
            <div style="text-align: left; margin-left:154px; margin-bottom:5px; " >
                <div onclick="return $('#formRegister').submit();" class="btSend"></div>
            </div>
        }
    </div>   
    <div class="clearAll"></div>    
</section>
<div id="ConfirmRegister" title="Successful Gamebet Resgistration" style="font-family: Tahoma,Geneva,Arial,sans-serif; display: none;">
        @RegisterResource.RegisterSuccess  
</div>

<script type="text/javascript">
    $(document).ready(function() {
        if ("@ViewBag.Status" == "1") {
            var id = "ConfirmRegister";
            popupRegister(id);
        }
    });
</script>
